 // 时间轴交互逻辑
  const timelineDots = document.querySelectorAll('.timeline-dot');
  const honorContents = document.querySelectorAll('.honor-content');
  const timelineTrack = document.querySelector('.timeline-track');
  const dragIndicator = document.querySelector('.drag-indicator');
  
  // 初始化：激活2024年节点
  timelineDots.forEach(dot => {
    if (dot.getAttribute('data-year') === '2024') {
      dot.classList.add('active');
    }
  });
  
  // 点击年份节点切换内容
  timelineDots.forEach(dot => {
    dot.addEventListener('click', () => {
      const target = dot.getAttribute('data-target');
      
      // 更新节点激活状态
      timelineDots.forEach(d => d.classList.remove('active'));
      dot.classList.add('active');
      
      // 更新内容显示
      honorContents.forEach(content => content.classList.remove('active'));
      document.getElementById(target).classList.add('active');
      
      // 平滑滚动到当前节点
      const index = parseInt(dot.getAttribute('data-index'));
      scrollToDot(index);
    });
  });
  
  // 鼠标拖动时间轴功能
  let isDragging = false;
  let startX;
  let scrollLeft;
  
  timelineTrack.addEventListener('mousedown', (e) => {
    isDragging = true;
    startX = e.pageX - timelineTrack.offsetLeft;
    scrollLeft = timelineTrack.scrollLeft;
    timelineTrack.style.cursor = 'grabbing';
    dragIndicator.style.display = 'none'; // 拖动时隐藏指示器
  });
  
  document.addEventListener('mouseup', () => {
    isDragging = false;
    timelineTrack.style.cursor = 'grab';
    dragIndicator.style.display = 'flex'; // 结束拖动显示指示器
  });
  
  document.addEventListener('mouseleave', () => {
    isDragging = false;
    timelineTrack.style.cursor = 'grab';
    dragIndicator.style.display = 'flex';
  });
  
  document.addEventListener('mousemove', (e) => {
    if (!isDragging) return;
    e.preventDefault();
    const x = e.pageX - timelineTrack.offsetLeft;
    const walk = (x - startX) * 1.5; // 拖动速度
    timelineTrack.scrollLeft = scrollLeft - walk;
  });
  
  // 触摸设备支持
  timelineTrack.addEventListener('touchstart', (e) => {
    isDragging = true;
    startX = e.touches[0].pageX - timelineTrack.offsetLeft;
    scrollLeft = timelineTrack.scrollLeft;
    dragIndicator.style.display = 'none';
  }, { passive: true });
  
  document.addEventListener('touchend', () => {
    isDragging = false;
    dragIndicator.style.display = 'flex';
  });
  
  document.addEventListener('touchmove', (e) => {
    if (!isDragging) return;
    const x = e.touches[0].pageX - timelineTrack.offsetLeft;
    const walk = (x - startX) * 1.5;
    timelineTrack.scrollLeft = scrollLeft - walk;
  }, { passive: false });
  
  // 平滑滚动到指定节点
  function scrollToDot(index) {
    const dot = timelineDots[index];
    if (dot) {
      // 计算节点在视口中的位置
      const dotRect = dot.getBoundingClientRect();
      const containerRect = timelineTrack.getBoundingClientRect();
      const offset = dotRect.left - containerRect.left + timelineTrack.scrollLeft;
      
      // 确保节点在视口中间
      const targetScrollLeft = offset - (containerRect.width - dotRect.width) / 2;
      
      // 平滑滚动
      timelineTrack.scrollTo({
        left: targetScrollLeft,
        behavior: 'smooth'
      });
    }
  }